import request from '@/utils/request'
export default {
    // 添加小节
    addVideo(video) {
        return request({
            url: '/video/add',
            method: 'post',
            data: video
        })
    },
    // 修改小节
    updateVideo(video) {
        return request({
            url: '/video/update',
            method: 'post',
            data: video
        })
    },
    // 根据ID删除小节
    deleteByVideoId(videoId) {
        return request({
            url: '/video/delete/' + videoId,
            method: 'delete'
        })
    },
    // 根据ID查询小节
    getVideo(videoId) {
        return request({
            url: '/video/query/' + videoId,
            method: 'get'
        })
    },
    // 根据ID删除小节视频
    removeVideoById(videoId) {
        return request({
            url: '/video/remove/' + videoId,
            method: 'deete'
        })
    }
}